import  numpy as np

data = [('zs',[100,100,100],18),
        ('ls',[90,90,90],19),
        ('ww',[80,80,80],20)]
#第一种
# ary = np.array(data,dtype='U2,3int32,int32')
# print(ary['f2'].mean())
#第二种
# ary = np.array(data,dtype=[('name','str',2),
#                ('score','int',3),
#                ('age','int32',1)])
# print(ary['age'])
#第三种
# ary = np.array(data,dtype={'names':['name','score','age'],
#                            'formats':['U2','3int32','int32']})
# print(ary['name'])
